﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Index.aspx.cs" Inherits="Index" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <style type="text/css">
        .auto-style1 {
            width: 100%;
            height: 117px;
        }
        .auto-style2 {
            width: 56px;
        }
        .auto-style3 {
            height: 20px;
        }
        .auto-style4 {
            height: 36px;
        }
    </style>
    <link href="App_Themes/simple.css" rel="stylesheet" />

    
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <div>  <asp:Label ID="lbl_Address" runat="server" Text="区域"></asp:Label>
                 <asp:LinkButton ID="lbl_Address_Unlimit" runat="server" Text="不限"  OnClick="OnClick_Address_Unlimit"> </asp:LinkButton>
            </div>
          <div>
               <asp:DataList runat="server" ID="dl_Area" RepeatDirection="Horizontal" OnItemCommand="dl_Area_ItemCommand" >
                  <ItemTemplate>
                      <asp:LinkButton ID="LinkButton19" runat="server" Text='<%# Eval("Name") %>' AreaId='<%# Eval("Id") %>' CommandArgument='<%# Eval("Id") %>'></asp:LinkButton>
                  </ItemTemplate>
              </asp:DataList>
          </div>
           
        </div>
        <div>
            <asp:Label ID="lbl_Price" runat="server" Text="价格"></asp:Label>
               <asp:LinkButton ID="lbl_Price_Unlimit" runat="server" Text="不限" OnClick="OnClick_Price" PriceId="0"> </asp:LinkButton>
                <asp:LinkButton ID="lbtn_" runat="server" Text="500元以下" OnClick="OnClick_Price" PriceId="1"> </asp:LinkButton>
                <asp:LinkButton ID="LinkButton13" runat="server" Text="500-1000元" OnClick="OnClick_Price" PriceId="2"> </asp:LinkButton>
                <asp:LinkButton ID="LinkButton14" runat="server" Text="1000-1500元" OnClick="OnClick_Price" PriceId="3"> </asp:LinkButton>
                <asp:LinkButton ID="LinkButton15" runat="server" Text="1500-2000元" OnClick="OnClick_Price" PriceId="4"> </asp:LinkButton>
                <asp:LinkButton ID="LinkButton16" runat="server" Text="2000-3000元" OnClick="OnClick_Price" PriceId="5"> </asp:LinkButton>
                <asp:LinkButton ID="LinkButton17" runat="server" Text="3000-4500元" OnClick="OnClick_Price" PriceId="6"> </asp:LinkButton>
                <asp:LinkButton ID="LinkButton18" runat="server" Text="4500元以上" OnClick="OnClick_Price" PriceId="7"> </asp:LinkButton>
        </div>
         <div>
            <asp:Label ID="lbl_LeaseModeId" runat="server" Text="出租方式"></asp:Label>
             <asp:LinkButton ID="lbl_LeaseModeId_Unlimit" runat="server" Text="不限" OnClick="OnClick_LeaseModeId_Unlimit"> </asp:LinkButton>
           <asp:DataList runat="server" ID="dl_LeaseMode" RepeatDirection="Horizontal" OnItemCommand="dl_LeaseMode_ItemCommand" >
              
                  <ItemTemplate>
                      <asp:LinkButton ID="LinkButton19" runat="server" Text='<%# Eval("Name") %>' AreaId='<%# Eval("Id") %>' CommandArgument='<%# Eval("Id") %>'></asp:LinkButton>
                  </ItemTemplate>
              </asp:DataList>
        </div>
       
         <div>
            <asp:Label ID="lbl_RoomNumber" runat="server" Text="房间数"></asp:Label>
             <asp:LinkButton ID="lbl_RoomNumberUnlimit" runat="server" Text="不限" RoomNumber="0"  OnClick="OnClick_RoomNumber"> </asp:LinkButton>
            <asp:LinkButton ID="lbl_RoomNumber1" runat="server" Text="1" Width="23" RoomNumber="1" OnClick="OnClick_RoomNumber"> </asp:LinkButton>
             <asp:LinkButton ID="lbl_RoomNumber2" runat="server" Text="2" Width="23" RoomNumber="2" OnClick="OnClick_RoomNumber"> </asp:LinkButton>
             <asp:LinkButton ID="lbl_RoomNumber3" runat="server" Text="3" Width="23" RoomNumber="3" OnClick="OnClick_RoomNumber"> </asp:LinkButton>
              <asp:LinkButton ID="lbl_RoomNumber4" runat="server" Text="4" Width="23" RoomNumber="4" OnClick="OnClick_RoomNumber"> </asp:LinkButton>


        </div>
    <div>
    
        <asp:DataList ID="dl_HouseData" runat="server" CellPadding="4" ForeColor="#333333" Height="341px" RepeatDirection="Vertical" OnItemCommand="dl_HouseData_ItemCommand" Width="728px">
            <AlternatingItemStyle BackColor="White" />
            <FooterStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#990000" Font-Bold="True" ForeColor="White" />
            <ItemStyle BackColor="#FFFBD6" ForeColor="#333333" />
            <ItemTemplate>
                <table class="auto-style1">
                    <tr>
                        <td class="auto-style2" rowspan="4">
                            <asp:Image ID="img_HouseURl" runat="server" DescriptionUrl='<%#"~/HouseDetail.aspx?Id="+ Eval("Id") %>' ImageUrl='<%# Eval("ThumbnailUri") %>' />
                        </td>
                        <td class="auto-style3">
                            <asp:Label ID="lbl_HouseDescription" runat="server" Text="房源描述"></asp:Label>
                        </td>
                        <td class="auto-style3">
                            价格：<asp:Label ID="lbl_Price" runat="server" Text='<%# Eval("Price") %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td class="auto-style4">
                            地址：<asp:Label ID="lbl_HouseAddress" runat="server" Text='<%# Eval("Address") %>'></asp:Label>
                        </td>
                        <td class="auto-style4">
                            规格:<asp:Label ID="lbl_Standard" runat="server" Text='<%# Eval("Standard") %>'></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Label ID="lbl_PublishTime" runat="server" Text='<%# Eval("PublishTime") %>'></asp:Label>
                            发布/<asp:Label ID="lbl_InTakeTime" runat="server" Text='<%# Eval("InTakeTime") %>'></asp:Label>
                            可以入住</td>
                        <td>&nbsp;</td>
                    </tr>
                    <tr>
                        <td>
                            经纪人：<asp:Label ID="lbl_HouseHolderName" runat="server" Text='<%# Eval("Name") %>'></asp:Label>
                        </td>
                        <td>
                            <asp:Button ID="btn_ShowDetail" runat="server" Height="36px" CommandArgument='<%# DataBinder.Eval(Container.DataItem, "Id") %>' CommandName="showDetail" OnClick="HouseDetail_Click" Text="查看" Width="98px"  />
                        </td>
                    </tr>
                </table>
            </ItemTemplate>
            <SelectedItemStyle BackColor="#FFCC66" Font-Bold="True" ForeColor="Navy" />
        </asp:DataList>
     <webdiyer:aspnetpager id="AspNetPager1" runat="server" alwaysshow="True" custominfohtml="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条"
            showcustominfosection="Right" showpageindexbox="always" pageindexboxtype="DropDownList"
            pagesize="2" onpagechanged="AspNetPager1_PageChanged">
                        </webdiyer:aspnetpager>
    </div>
    </form>
</body>
</html>
